a=[1,4,9,16,2,5,10,15]
b=[] 
for i in range(len(a)-1): 
    sum=a[i]+a[i+1]
    b.append(sum)
print(b)
